import { type RouteRecordRaw } from 'vue-router';

export const devicesRoutes: RouteRecordRaw[] = [
  {
    path: '/devices',
    name: 'devices',
    meta: { title: '设备管理', icon: 'redis' },
    children: [
      {
        path: 'allDevice',
        name: 'allDevice',
        meta: { title: '设备总览', icon: 'menu-tree' },
        component: () => import('@/views/devices/allDevice/Index.vue'),
      },
      {
        path: 'deviceMode',
        name: 'deviceMode',
        meta: { title: '设备型号管理', icon: 'menu-icon' },
        component: () => import('@/views/devices/deviceMode/Index.vue'),
      },
      {
        path: 'device',
        name: 'device',
        meta: { title: '接入设备', icon: 'menu-server' },
        component: () => import('@/views/devices/device/Index.vue'),
      },
      {
        path: 'informationManagement',
        name: 'informationManagement',
        meta: { title: '批量信息管理', icon: 'menu-server' },
        component: () =>
          import('@/views/devices/informationManagement/Index.vue'),
      },
      {
        path: 'project',
        name: 'project',
        meta: { title: '项目管理', icon: 'menu-project' },
        component: () => import('@/views/devices/project/Index.vue'),
      },
    ],
  },
];
